elimination method x and y